package com.nk.generate;

import java.util.ArrayList;
import java.util.List;

public class TestGenerator {

	public static void main(String[] args) {
		

		List<String> tables = new ArrayList<String>();
		tables.add("t_department");

		GeneratorUtil.generator("mysql", 
				"jdbc:mysql://192.168.31.207:3306/db_nbc?useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull",
				"ningbo_nbc", 
				"ningbo_nbc", 
				"T_", 
				"C_",
				tables, 
				"com.nk.base.frame.common", 
				"IdEntity", 
				"com.nk.employee.entity");

		// Properties pro = new Properties();
		// pro.put("jdbc.driver", "oracle.jdbc.driver.OracleDriver");
		// pro.put("jdbc.url", "jdbc:oracle:thin:@192.168.123.206:1521:oradb");
		// pro.put("user", "nkpa");
		// pro.put("password", "nkpa");
		// pro.put("remarksReporting", "true");
		// pro.put("ISNEEDKEY", true);
		// pro.put("PACKAGE", "com.nk.pa");
		// try {
		// Generator.createGenerator(pro);
		// } catch (Exception e) {
		// e.printStackTrace();
		// }
	}

}
